package com.foreknow.service;

import com.foreknow.model.Admin;
import java.util.List;

public interface AdminService {
    /**
     * 添加
     * @param admin
     * @return
     */
    public boolean add(Admin admin);

    /**
     * 根据Id删除
     * @param id
     * @return
     */
    public boolean deleteById(int id);

    /**
     * 根据id查询
     * @param id
     * @return
     */
    public Admin getQueryById(int id);

    /**
     * 修改
     * @param admin
     * @return
     */
    public boolean update(Admin admin);

    /**
     * 查询所有
     * @return
     */
    public List<Object> queryAll();
}
